Skip to content

feat(solana-wallet-snap)!: remove assets handlers - #261

Merged
ulissesferreira merged 3 commits into
mainfrom
WPN-2013-remove-asset-handlers
Sep 4, 2026
Merged

feat(solana-wallet-snap)!: remove assets handlers#261
ulissesferreira merged 3 commits into
mainfrom
WPN-2013-remove-asset-handlers

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Closes WPN-2013

Summary

  • Removes the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice, and onAssetsMarketData entry points from solana-wallet-snap
  • Removes the now-unused handler modules under src/core/handlers/onAsset*
  • Removes the now-unused endowment:assets permission from the manifest

The AssetsService and TokenPricesService are kept since they are used by send, subscriptions, and transaction services.

Breaking change

The asset handler entry points are no longer exported by the snap.

@ulissesferreira
ulissesferreira requested a review from a team as a code owner September 2, 2026 17:12
@ulissesferreira
ulissesferreira force-pushed the WPN-2013-remove-asset-handlers branch 5 times, most recently from 7aaeeef to a46e265 Compare September 4, 2026 09:07
Remove the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice,
and onAssetsMarketData entry points, along with their now-unused
handler modules and the endowment:assets permission.

Closes WPN-2013
Remove the code left orphaned by the asset handler removal:
- AssetsService.fetchAssetsMarketData and SnapAssetsAdapter.fetchAssetsMarketData
- TokenPricesService (getMultipleTokensMarketData, getMultipleTokenConversions, getHistoricalPrice) and its types/tests
- PriceApiClient.getHistoricalPrices and historical price types/mocks
- tokenPricesService wiring in SnapAssetsAdapter and snapContext
@ulissesferreira
ulissesferreira force-pushed the WPN-2013-remove-asset-handlers branch from a46e265 to bca4a2b Compare September 4, 2026 09:12
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@ulissesferreira ulissesferreira changed the title feat(solana-wallet-snap)!: remove asset handler entry points feat(solana-wallet-snap)!: remove assets handlers Sep 4, 2026
@ulissesferreira
ulissesferreira added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit b2c855b Sep 4, 2026
55 checks passed
@ulissesferreira
ulissesferreira deleted the WPN-2013-remove-asset-handlers branch September 4, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants